<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<table border="2">
<tr><th>week</th><th>name</th></tr>
<c:forEach items="${files}" var="file">

<tr><th><c:out value="${file.week}"/></th><th><c:out value="${file.name}"/></th></tr>
</c:forEach>
</table>
<p>Add new file</p>
<form:form modelAttribute="new" action="/file/${code}" method="post">
		<form:label for="name" path="name">name</form:label>
		<form:input path="name" /><br/>
		<form:label for="week" path="week">week</form:label>
		<form:input path="week" /><br/>
		<form:label for="content" path="content">file</form:label>
		<input disabled="true" path="content" /><br/>
		<input type="submit" />
	</form:form>
</body>
</html>